<extend name="../Public/model" />
<block name="title">添加{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" datatype="*5-32" nullmsg="用户名不能为空" name="username">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>密码：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="password" class="input-text" placeholder="密码" name="password" datatype="*6-16" nullmsg="请设置密码" errormsg="密码范围在6~16位之间">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>确认密码：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="password" class="input-text" placeholder="确认新密码" name="password2" datatype="*" recheck="password" nullmsg="请再输入一次密码" errormsg="您两次输入的密码不一致">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>昵称或公司名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" datatype="*5-32" nullmsg="昵称或公司名称不能为空" name="nickname">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">角色：</label>
            <div class="formControls col-xs-8 col-sm-8">
             <!--<span class="select-box" style="width:150px;">-->
                <!--<select class="select" name="role_ids" size="1">-->
                    <!--<volist name="roles" id="info">-->
                        <!--<option value="{$info.role_id}">{$info.role_name}</option>-->
                    <!--</volist>-->
                <!--</select>-->
			<!--</span>-->
            <volist name="roles" id="info">
                <div class="check-box">
                    <input type="checkbox" name="role_ids[]" value="{$info.role_id}">
                    <label>{$info.role_name}</label>
                </div>
            </volist>
        </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">手机：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="mobile">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">邮箱：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" placeholder="@" name="email">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">备注：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,100)"></textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-8 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>